﻿using System;

namespace NumTypes
{
    class Program
    {
        static void Main(string[] args)
        {
            float tenth = 0.1f;                       // Not quite 0.1
            float one = 1f;
            Console.WriteLine(one - tenth * 10f);    // -1.490116E-08
            Console.WriteLine(1.0 / 0.0);
            Console.WriteLine(0.0 / 0.0);

            float x = 0.1f;
            Console.WriteLine("实数舍入误差");
            Console.WriteLine(x + x + x + x + x + x + x + x + x + x);//计算得到的结果不是1 而是1.0000001
            Console.WriteLine(x * 10);
        }
    }
}
